package com.junzhiit.nengji.shop.model.enums;

import com.bainaeco.framework.exception.InvalidArgumentException;

public enum isMobile {
	
	WESITE(0),
	WAP(1);
	private Integer value;
	
	private isMobile(Integer value){
		this.value = value;
	}

	public int toIntValue() {
		return this.value;
	}

	public static isMobile toValue(int value) {
		if (WESITE.value == value) {
			return WESITE;
		} else if (WAP.value == value) {
			return WAP;
		} else {
			throw new InvalidArgumentException("Unknown is[" + value + "].");
		}
	}
}
